


import pytest
from send.send_req import Send_req
from utils.yaml_utils import read_yaml
class Test_login:



    @pytest.mark.parametrize("args" ,  read_yaml("./data/login.yaml")  )
    def test_login(self,args):
        import requests

        session = requests.session()

        send =  Send_req()

        result = send.send_login(session,args["username"],args["password"])


        assert  result["code"] == 200  and result["body"]["code"] == args["exp"]




